<div style="display: none;" id="createpoinvoice_table_container">

	<div id="rightside" class="full_size">
    	
    	<article>
        	<header><h2 id="poinv_header">Create Invoice for a Purchase Order</h2>
        	<h2 id="nonpoinv_header" style="display:none;"> Create non-PO Invoice</h2>
        	</header>
            <div class="group" id="createDiv">
            	<div class="lblDiv">Supplier Invoice #:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_num"/></div>
                <div id="openLinkDiv" style="display:none">
                <div class="lblDiv">Purchase Order #</div>
                <div class="cntrlDiv">
                	<select id="inv_ponum" onchange="inv_selPo();"></select> &nbsp; &nbsp; 
                	<a href="javascript:open_sel_po_from_inv();"> OPEN PO </a></div>
                </div>
                <div class="lblDiv">Invoice Date:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_date"/></div>
                <div class="lblDiv">Requested By:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_reqby" /></div>
                <div class="lblDiv">Title:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_title" /></div>
                <div class="lblDiv">Prepared By:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_preparedby" /></div>
                <div class="lblDiv">Client/Buyer:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_client" />
                <select id="inv_client_sel" style="display:none;"></select></div>
            </div>
        </article>
        
        <article>
            <div class="group" id="createDiv">
            	<div class="lblDiv">Payment Terms:</div>
                <div class="cntrlDiv">
                	<select id="inv_pmtterms"></select>
                </div>
                <div class="lblDiv">Custom Field 1:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_cf1" /></div>
                <div class="lblDiv">Custom Field 2:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_cf2" /></div>
                <div class="lblDiv">Custom Field 3:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_cf3" /></div>
            </div>
        </article>
        
        <article>
            <div class="group" id="createDiv">
                <div class="lblDiv">Supplier:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_supplier" /></div>
                <div class="lblDiv">Remit To Location:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_remittoloc" /></div>
                <div class="lblDiv">Supplier Location:</div>
                <div class="cntrlDiv"><input type="text" name="" id="inv_supploc" /></div>
            </div>
        </article>
        
        <div id="inv_line_details">
        <article>
        	<header><h2>Line Details</h2></header>
            <div class="group" id="createDiv">
            	<div class="fullDiv">
                	<br/>
					<br/>
                    <div id="inv_lineDetails_yuiTable"></div>
                    <br/>
                    <br/>
                </div>
            </div>
        </article>
        </div>
        
        <div id="nonpoinv_amt_div">
		<article>
        	<header><h2>Amount Details</h2></header>
            <div class="group" id="createDiv">
            	<div class="fullDiv">
                	<br/>
					<br/>
                    Invoice Amount:&nbsp;&nbsp; <input id="nonpo_invamt_input" value="" onchange="dwr.util.setValue('inv_totalamt',this.value);" onblur="dwr.util.setValue('inv_totalamt',this.value);"></input>
                    <br/>
                    <br/>
                </div>
            </div>
        </article>
		</div>
		
	
		
		<article>
        	<header><h2> Total Invoice Amount: <span style="align:right;" id="inv_totalamt"></span>&nbsp;&nbsp;<span id="inv_curr">USD</span></h2></header>
            <div class="group" id="createDiv">
            	<table>
	            	<tr>
	            	<td width="50%">
            	<div id="commentComponetPlaceHolder3"></div></td>
            	<td width="50%">
            	<td width="50%">
                 <div id="attachmentComponetPlaceHolder3"></div>
                 </td></tr>
                 </table>
                 
                <div class="fullDiv">
                    <div class="lblDiv">&nbsp;</div>
                    <div class="cntrlDiv"><input onclick="javascript:createinvoice();" type="submit" name="" id="" value="Submit Invoice"></div>
                </div>
            </div>
        </article>
        
        
    </div>  
      
</div>
<div style="display: none;">
      <label for="inv_ponum" id="inv_ponum_lbl">Purchase Order #:&nbsp;&nbsp;</label>
        
</div>